// rh  11/16/2005  Request per Gregg to add an edit box for qty so that customers
//                 can control the qty to purchase

function codeWin2()
{
  //window.open('http://www.wpspublish.com/Inetpub4/w0203.htm','FAQ', 'width=780,height=450,top=50,left=200,menubar=yes,Scrollbars=yes,resizable=yes');
}

function codeWin()
{
  //window.open('http://www.wpspublish.com/Inetpub4/catalog/a_code.htm','Country Code', 'width=780,height=450,top=50,left=200,menubar=yes,Scrollbars=yes,resizable=yes');
}

var debug = false;

var cel0 = new Array( 16, 5, 7, 75, 90, 471, 20, 128, 2, 1);
// var cel0 = new Array( 16, 5, 7, 75, 90, 401, 90, 128, 2, 1);

// dw
// rh 11/16/2005 added edit box
//var cel0WPS = new Array( 16, 5, 7, 60, 60, 374, 20);
var cel0WPS = new Array( 16, 5, 7, 80, 60, 380, 50, 75);


// var cel0CTS = new Array( 16, 5, 7, 75, 90, 384, 20, 215, 2, 1);
// var cel0CTS = new Array( 16, 5, 7, 75, 90, 415, 20, 184, 2, 1);
var cel0CTS = new Array( 16, 5, 7, 75, 90, 440, 20, 84, 2, 1);


// dw
//var color0 = new Array( "#FFFFFF", "#FFFFCE", "#FF0000");
  var color0 = new Array( "#FFFFFF", "#FFFFCE", "#FF0000", "#DEEBFF");

var font0 = new Array( 'Arial', '2');
var wfont = 'face="Arial, Helvetica, San-Serif"';

var sfont = new Array( 	 ''
			,'size="1"'
			,'style="font-size: 8pt"'
			,'style="font-size: 9pt"'
		 	,'size="2"'
			,'style="font-size: 11pt"'
			,'size="3"'
			,'style="font-size: 13pt"'
			,'size="4"'
			,'style="font-size: 15pt"'
			,'style="font-size: 16pt"'
			,'style="font-size: 17pt"'
			,'size="5"'
			,'style="font-size: 19pt"'
			,'style="font-size: 20pt"'
			,'style="font-size: 21pt"'
			,'style="font-size: 22pt"'
			,'style="font-size: 23pt"'
			,'size="6"'
			);

// rh 11/17/05
//var cfont = new Array( '', 'color="#000000"', 'color="#FF6500"');
var cfont = new Array( '', 'color="#000000"', 'color="#FF6500"', 'color="636531"', 'color="10147B"');


// dw - sts_WPS added for portal
// rh 11/17/05
//var sts_WPS = '<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" //bordercolor="#111111" width="514">';
var sts_WPS = '<table border="0" cellpadding="3" cellspacing="0" '+
              'style="border-style:solid; border-width:1; '+
              'border-collapse: collapse; padding-left:4; '+
              'padding-right:4; padding-top:1; '+
              'padding-bottom:1" bordercolor="#CECF9C" width="650">';

var sts = '<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="625">';

var MPF = new Array( "Mac_68000", "Mac_PowerPC" );
var rpf = navigator.userAgent;

// Mac_68000
// Mac_PowerPC

var debug = false;

function bof() {
	dw('</b>');
}

function bon() {
	dw('<b>');
}

function dw( text ) {
   document.write( text );
}

function ddo( string ) {
	dw ('<option>'+string+'</option>');
}

function ddsof() {
	dw('</select>');
}

function ddson( size, name ) {
	dw('<select size="'+size+'" name="'+name+'">');
}

function ddso( string ) {
	dw ('<option selected>'+string+'</option>');
}

function fontend() {
	dw('</font>');
}

function fontstart( size, color ) {
	for( var I0 = 0 ; I0 < MPF.length ; I0++) {
//		if( -1 > rpf.indexOf( MPF[I0] )) {
		if( -1 != rpf.indexOf( MPF[I0] )) {
			if( size > 0)
				size += 1;
		}
	}
	dw('<font '+wfont+' '+sfont[size]+' '+cfont[color]+'>');
}

function iof(){
	dw('</i>');
}

function ion(){
	dw('<i>');
}


function wblank() {
	dw('&nbsp;');
}

function uof() {
	dw('</u>');
}

function uon() {
	dw('<u>');
}

// JL-11/06 ccc: removed because cause error in netscape browser
// rh
//var OK = new Array( "workingdir" );
//OK[OK.length] = "shortcuts.js";
