function emailHide(email, domain, display) { document.write('<a href=' + 'mail' + 'to:' + email + '@' + domain + '>' + display + '</a>');}function openExternal(theURL, width, height){	var external=window.open(theURL,'external','width='+ width +',height='+ height +'');	external.focus();}function toggle ( targetId ) {	if (document.getElementById) {		target = document.getElementById( targetId );				if (target.style.display == 'none') {						target.style.display = '';				} else {					target.style.display = 'none';				}	}}function toggleclass ( targetId ) {	if (document.getElementById) {		target = document.getElementById( targetId );				if (target.className == 'plus') {						target.className = 'minus';				} else {					target.className = 'plus';				}	}}/************************************************ Fixed ToolTip script- © Dynamic Drive (www.dynamicdrive.com)* This notice MUST stay intact for legal use* Visit http://www.dynamicdrive.com/ for full source code***********************************************/		var tipwidth='150px' //default tooltip widthvar tipbgcolor='lightyellow'  //tooltip bgcolorvar disappeardelay=250  //tooltip disappear speed onMouseout (in miliseconds)var vertical_offset="0px" //horizontal offset of tooltip from anchor linkvar horizontal_offset="-3px" //horizontal offset of tooltip from anchor link/////No further editting neededvar ie4=document.allvar ns6=document.getElementById&&!document.allif (ie4||ns6)document.write('<div id="fixedtipdiv" style="visibility:hidden;width:'+tipwidth+';background-color:'+tipbgcolor+'" ></div>')function getposOffset(what, offsettype){var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;var parentEl=what.offsetParent;while (parentEl!=null){totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;parentEl=parentEl.offsetParent;}return totaloffset;}function showhide(obj, e, visible, hidden, tipwidth){if (ie4||ns6)dropmenuobj.style.left=dropmenuobj.style.top=-500if (tipwidth!=""){dropmenuobj.widthobj=dropmenuobj.styledropmenuobj.widthobj.width=tipwidth}if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover")obj.visibility=visibleelse if (e.type=="click")obj.visibility=hidden}function iecompattest(){return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body}function clearbrowseredge(obj, whichedge){var edgeoffset=(whichedge=="rightedge")? parseInt(horizontal_offset)*-1 : parseInt(vertical_offset)*-1if (whichedge=="rightedge"){var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15dropmenuobj.contentmeasure=dropmenuobj.offsetWidthif (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure)edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth}else{var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18dropmenuobj.contentmeasure=dropmenuobj.offsetHeightif (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure)edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight}return edgeoffset}function fixedtooltip(menucontents, obj, e, tipwidth){if (window.event) event.cancelBubble=trueelse if (e.stopPropagation) e.stopPropagation()clearhidetip()dropmenuobj=document.getElementById? document.getElementById("fixedtipdiv") : fixedtipdivdropmenuobj.innerHTML=menucontentsif (ie4||ns6){showhide(dropmenuobj.style, e, "visible", "hidden", tipwidth)dropmenuobj.x=getposOffset(obj, "left")dropmenuobj.y=getposOffset(obj, "top")dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"}}function hidetip(e){if (typeof dropmenuobj!="undefined"){if (ie4||ns6)dropmenuobj.style.visibility="hidden"}}function delayhidetip(){if (ie4||ns6)delayhide=setTimeout("hidetip()",disappeardelay)}function clearhidetip(){if (typeof delayhide!="undefined")clearTimeout(delayhide)}/************************************************ highlight & link table cell***********************************************/    function ChangeColor(tableRow, highLight)    {    if (highLight)    {      tableRow.style.backgroundColor = '#FF357';    }    else    {      tableRow.style.backgroundColor = 'white';    }  }  function DoNav(theUrl)  {  document.location.href = theUrl;  }        function ChangeColorTopNav(tableRow, highLight)    {    if (highLight)    {      tableRow.style.backgroundColor = '#EEEEEE';    }    else    {      tableRow.style.backgroundColor = '#E5E5E5';    }  }  function DoNav(theUrl)  {  document.location.href = theUrl;  }        <!-- Multi variable dopdowns --->function changehowhear(selectTodo) {		var elements = document.getElementsByName('form_optional');		for (var i = 0; i < elements.length; i++) {			elements[i].style.display = 'none';		}		switch(selectTodo.value) {						case 'specifyGENRE':				setDisplay('form_specifyGENRE_target');				break;			case 'specifyBUDGET':				setDisplay('form_specifyBUDGET_target');				break;				case 'specifySTYLE':				setDisplay('form_specifySTYLE_target');				break;				case 'specifyOther':				setDisplay('form_specifyOther_target');				break;						default:		}	}	function setDisplay(id) {		document.getElementById(id).style.display = '';	}function MM_jumpMenu(targ,selObj,restore){ //v3.0  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");  if (restore) selObj.selectedIndex=0;}function popUp(strURL,strType,strHeight,strWidth) {var strOptions="";if (strType=="console") strOptions="resizable,height="+strHeight+",width="+strWidth;if (strType=="fixed") strOptions="status,height="+strHeight+",width="+strWidth;if (strType=="elastic") strOptions="toolbar,menubar,scrollbars,resizable,location,height="+strHeight+",width="+strWidth;window.open(strURL, 'newWin', strOptions);}// Title: Tigra Hints// URL: http://www.softcomplex.com/products/tigra_hints/// Version: 1.2// Date: 04/18/2003 (mm/dd/yyyy)function THints (o_cfg, items) {	this.top = o_cfg.top ? o_cfg.top : 0;	this.left = o_cfg.left ? o_cfg.left : 0;	this.n_dl_show = o_cfg.show_delay;	this.n_dl_hide = o_cfg.hide_delay;	this.b_wise = o_cfg.wise;	this.b_follow = o_cfg.follow;	this.x = 0;	this.y = 0;	this.divs = [];	this.show  = TTipShow;	this.showD = TTipShowD;	this.hide = TTipHide;	this.move = TTipMove;	if (document.layers) return;	var b_IE = navigator.userAgent.indexOf('MSIE') > -1,	s_tag = ['<div id="TTip%name%" style="visibility:hidden;position:absolute;top:0px;left:0px;',   b_IE ? 'width:1px;height:1px;' : '', o_cfg['z-index'] != null ? 'z-index:' + o_cfg['z-index'] : '', '"><table cellpadding="0" cellspacing="0" border="0"><tr><td class="', o_cfg.css, '" nowrap>%text%</td></tr></table></div>'].join('');	this.getElem = 		function (id) { return document.all ? document.all[id] : document.getElementById(id); };	this.showElem = 		function (id, hide) { this.divs[id].o_css.visibility = hide ? 'hidden' : 'visible'; };	this.getWinSz = window.innerHeight != null 		? function (b_hight) { return b_hight ? innerHeight : innerWidth; }		: function (b_hight) { return document.body[b_hight ? 'clientHeight' : 'clientWidth']; };		this.getWinSc = window.innerHeight != null 		? function (b_hight) { return b_hight ? pageYOffset : pageXOffset; }		: function (b_hight) { return document.body[b_hight ? 'scrollTop' : 'scrollLeft']; };		if (window.opera) {		this.getSize = function (id, b_hight) { 			return this.divs[id].o_css[b_hight ? 'pixelHeight' : 'pixelWidth']		};		document.onmousemove = function () {			myHint.x = event.clientX;			myHint.y = event.clientY;			if (myHint.b_follow && myHint.visible) myHint.move(myHint.visible)			return true;		};	}	else {		this.getSize = function (id, b_hight) { 			return this.divs[id].o_obj[b_hight ? 'offsetHeight' : 'offsetWidth'] 		};		document.onmousemove = b_IE		? function () {			myHint.x = event.clientX + document.body.scrollLeft;			myHint.y = event.clientY + document.body.scrollTop;			if (myHint.b_follow && myHint.visible) myHint.move(myHint.visible)			return true;		} 		: function (e) {			myHint.x = e.pageX;			myHint.y = e.pageY;			if (myHint.b_follow && myHint.visible) myHint.move(myHint.visible)			return true;		};	}	for (i in items) {		document.write (s_tag.replace(/%text%/, items[i]).replace(/%name%/, i));		this.divs[i] = { 'o_obj' : this.getElem('TTip' + i) };		this.divs[i].o_css = this.divs[i].o_obj.style;	}}function TTipShow (id) {	if (document.layers) return;	this.hide();	if (this.divs[id]) {		if (this.n_dl_show) this.divs[id].timer = setTimeout("myHint.showD(" + id + ")", this.n_dl_show);		else this.showD(id);		this.visible = id;	}}function TTipShowD (id) {	this.move(id);	this.showElem(id);	if (this.n_dl_hide) this.timer = setTimeout("myHint.hide()", this.n_dl_hide);}function TTipMove (id) {	var n_x = this.x + this.left, n_y = this.y + this.top;	if (this.b_wise) {		var n_w = this.getSize(id), n_h = this.getSize(id, true),		n_win_w = this.getWinSz(), n_win_h = this.getWinSz(true),		n_win_l = this.getWinSc(), n_win_t = this.getWinSc(true);		if (n_x + n_w > n_win_w + n_win_l) n_x = n_win_w + n_win_l - n_w;		if (n_x < n_win_l) n_x = n_win_l;		if (n_y + n_h > n_win_h + n_win_t) n_y = n_win_h + n_win_t - n_h;		if (n_y < n_win_t) n_y = n_win_t;	}	this.divs[id].o_css.left = n_x;	this.divs[id].o_css.top = n_y;}function TTipHide () {	if (this.timer) clearTimeout(this.timer);	if (this.visible != null) {		if (this.divs[this.visible].timer) clearTimeout(this.divs[this.visible].timer);		setTimeout("myHint.showElem(" + this.visible + ", true)", 10);		this.visible = null;	}}//    Book Weight Calculatorfunction sscalc(){    var ssweight;        ssweight = document.ss.sspag.value * document.ss.ssdep.value * document.ss.sswid.value * document.ss.ssgsm.value;    ssweight = ssweight / 2000000000;    ssweight = ssweight * document.ss.quan2.value * 1.02;        document.ss.weight.value = round(ssweight,4);}function magcalc(){    var cover;    var text;    var other;    var magazine;        cover = document.mcal.covpag.value * document.mcal.covdep.value * document.mcal.covwid.value * document.mcal.covgsm.value;    cover = cover / 2000000000;        text = document.mcal.texpag.value * document.mcal.texdep.value * document.mcal.texwid.value * document.mcal.texgsm.value;    text = text / 2000000000;        other = document.mcal.othpag.value * document.mcal.othdep.value * document.mcal.othwid.value * document.mcal.othgsm.value;    other = other / 2000000000;        magazine = cover + text + other;    magazine = document.mcal.quan1.value * magazine * 1.02;        document.mcal.weight.value = round(magazine,4);    if(document.mcal.calcreep.checked == true){        creepcalc();    }else{        document.mcal.mcreep.value = '';    }}function round(number,X) {    // rounds number to X decimal places, defaults to 2    X = (!X ? 2 : X);    return Math.round(number*Math.pow(10,X))/Math.pow(10,X);}