<!-- book mark site script
/***********************************************
* Bookmark site script- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

function bookmarksite(title, url){
if (document.all)
window.external.AddFavorite(url, title);
else if (window.sidebar)
window.sidebar.addPanel(title, url, "")
}
//-->

<!-- pop up
function openpopup(){
var w2=430
var h2=380
var winl2 = (screen.width - w2) / 2;
var wint2 = (screen.height - h2) / 2;
popupwindow = window.open("thanks.htm","",'width='+w2+',height='+h2+',top='+wint2+',left='+winl2+',resizable=yes,scrollbars=no');
popupwindow.blur();
}

function get_cookie(Name) {
  var search = Name + "="
  var returnvalue = "";
  if (document.cookie.length > 0) {
    offset = document.cookie.indexOf(search)
    if (offset != -1) { // if cookie exists
      offset += search.length
      // set index of beginning of value
      end = document.cookie.indexOf(";", offset);
      // set index of end of cookie value
      if (end == -1)
         end = document.cookie.length;
      returnvalue=unescape(document.cookie.substring(offset, end))
      }
   }
  return returnvalue;
}

function loadpopup2(){
if (get_cookie('popped')==''){
openpopup()
document.cookie="popped=yes"
}
}
//end -->

<!--hide 
function newwindow(theURL) { 
var w=500
var h=500
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
window.open(theURL,'new','width='+w+',height='+h+',top='+wint+',left='+winl+',resizable=yes,scrollbars=yes'); 
} 


function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->

<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
<!-- begin the phone numbers
/***********************************************
* Drop down menu w/ description- © Dynamic Drive (www.dynamicdrive.com)
***********************************************/
//1) CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE
var thetext1=new Array()
thetext1[0]="<b>(Please select your country)</b>"
thetext1[1]="<b><font color=red size=+1>1902 211 730</font> to charge the call to your phone account</b>* <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call <b><font color=red size=+1>1300 138 048</font> to charge the call to your credit card</b>^"
thetext1[2]="<b><font color=red size=+1>0900 77 111</font> to charge the call to your phone account</b>* <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call <b><font color=red size=+1>0800 110 248</font> to charge the call to your credit card</b>^"
thetext1[3]="<b><font color=red size=+1>0905 0090 530</font> to charge the call to your phone account</b>* <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Call <b><font color=red size=+1>0870 249 1055</font>  to charge the call to your credit card</b>^"
thetext1[4]="<b><font color=red size=+1>+1866 286 5095</font> to charge the call to your credit card</b>*"
thetext1[5]="<b><em>If your country is not included in our list of live psychic access numbers please try an <a href=\"private_chat.php\">online psychic reading</a> which are available for all countries.</em></b>"

var thetext2=new Array()
thetext2[0]=""
thetext2[1]="&nbsp;&nbsp;&nbsp;*Calls charged at A$5.45/min. inc. GST. Higher mobile/payphones. Readings for guidance only. <br>&nbsp;&nbsp;&nbsp;^Calls charged at A$4.50/min. inc. GST. for credit card payments. Higher mobile/payphones. Readings for guidance only."
thetext2[2]="&nbsp;&nbsp;&nbsp;*Calls charged at NZ$4.95/min. Higher mobile/payphones. Readings for guidance only. <br>&nbsp;&nbsp;&nbsp;^Calls charged at NZ$4.95/min. for credit card payments. Higher mobile/payphones. Readings for guidance only."
thetext2[3]="&nbsp;&nbsp;&nbsp;*Calls charged at UKŁ1.50/min. Higher mobile/payphones. Readings for guidance only.<br>&nbsp;&nbsp;&nbsp;^Calls charged at UKŁ1.50/min. Readings for guidance only."
thetext2[4]="&nbsp;&nbsp;&nbsp;*Calls charged at US$2.99/min. Higher mobile/payphones. Readings for guidance only."
thetext2[5]=""

// Now, see 2) below for final customization step

function displaydesc(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}
//   This function displays the initial description for the selected menu item
//var displaydesc(document.form1.select1, thetext1, 'textcontainer1');
//var displaydesc(document.form1.select1, thetext2, 'textcontainer2');
// end phone numbers-->
//Begin DROP DOWN NUMBERS FOR ATHENA STARWOMAN AND ALL OTHER HOROSCOPE LINES- ASTROGIRL & JENNY ANGEL
var thetext1Athena=new Array()
thetext1Athena[0]="<b>(Please select your country)</b>"
thetext1Athena[1]="<font size=+1>1902 215 155</font> to charge the call to your phone account* <br>Call <font size=+1>1300 135 580</font> to charge the call to your credit card^"
thetext1Athena[2]="<font size=+1>0900 33 509</font> to charge the call to your phone account*<br>Call <font size=+1>0800 110 253</font> to charge the call to your credit card^"
thetext1Athena[3]="<font size=+1>0905 0090 556</font> to charge the call to your phone account*<br>Call <font size=+1>0870 249 1027</font> to charge the call to your credit card^"
thetext1Athena[4]="<font size=+1>1800 5734 203</font> to charge the call to your credit card^"
thetext1Athena[5]="<font size=+1>800 3646 2535</font> to charge the call to your credit card^"

var thetext2Athena=new Array()
thetext2Athena[0]=""
thetext2Athena[1]="*Calls charged at A$3.50/min. including GST.  <br>^Calls charged at A$3.50/min. including GST. for credit card payments. <br>*^Higher mobile/payphones. Readings for guidance only."
thetext2Athena[2]="*Calls charged at NZ$4.95/min. Higher mobile/payphones. <br>^Calls charged at NZ$3.50/min. for credit card payments. <br>*^Higher mobile/payphones. Readings for guidance only."
thetext2Athena[3]="*Calls charged at UKŁ1.50/min.<br>^Calls charged at UKŁ1.50/min.  for credit card payments. <br>*^Higher mobile/payphones. Readings for guidance only."
thetext2Athena[4]="^Calls charged at US$1.99/min. <br>*^Higher mobile/payphones. Readings for guidance only."
thetext2Athena[5]="^Calls charged at US$2.99/min. <br>*^Higher mobile/payphones. Readings for guidance only.<br>This number is available to limited countries only (Canada, Ireland, Spain, Portugal & France).  First,  dial your international dialling code (check with your local phone carrier), then enter the freecall 800 number."

// Now, see 2) below for final customization step

function displaydescAthena(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}
// end phone numbers ATHENA -->
//Begin DROP DOWN NUMBERS FOR FREE CALLS
//1) CUSTOMIZE TEXT DESCRIPTIONS FOR LINKS ABOVE
var thetext1Free=new Array()
thetext1Free[0]="<b>(Please select your country)</b>"
thetext1Free[1]="<b>1300 134 409</b>*" 		//australia
thetext1Free[2]="<b>0800 110 252</b>*" 		//nz
thetext1Free[3]="<b>0870 224 6753</b>*" 	//uk
thetext1Free[4]="<b>still to come</b>*" 	//usa

var thetext2Free=new Array()
thetext2Free[0]=""
thetext2Free[1]="*Your first 5 minutes are Free.  Calls after this duration are charged at A$4.50/min. including GST.  Readings for guidance only."
thetext2Free[2]="*Your first 5 minutes are Free.  Calls after this duration are  charged at NZ$4.95/min. Readings for guidance only."
thetext2Free[3]="*Your first 5 minutes are Free.  Calls after this duration are  charged at UKŁ1.50/min. including GST.  Readings for guidance only."
thetext2Free[4]="*Your first 5 minutes are Free.  Calls after this duration are  charged at US$2.99/min.  Readings for guidance only."

// Now, see 2) below for final customization step

function displaydescFree(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}

// end phone numbers FREE CALLS -->
//Begin SMS
//1) CUSTOMIZE TEXT DESCRIPTIONS
var thetext1SMS=new Array()
thetext1SMS[0]="<b>(Please select your star sign)</b>"
thetext1SMS[1]="<b>AriesWeb</b>" 		//Aries
thetext1SMS[2]="<b>TaurusWeb</b>" 		//Taurus
thetext1SMS[3]="<b>GeminiWeb</b>" 	//Gemini
thetext1SMS[4]="<b>CancerWeb</b>" 	//Cancer
thetext1SMS[5]="<b>LeoWeb</b>" 	//Leo
thetext1SMS[6]="<b>VirgoWeb</b>" 	//Virgo
thetext1SMS[7]="<b>LibraWeb</b>" 	//Libra
thetext1SMS[8]="<b>ScorpioWeb</b>" 	//Scorpio
thetext1SMS[9]="<b>SagittariusWeb</b>" 	//Sagittarius
thetext1SMS[10]="<b>CapricornWeb</b>" 	//Capricorn
thetext1SMS[11]="<b>AquariusWeb</b>" 	//Aquarius
thetext1SMS[12]="<b>PiscesWeb</b>" 	//Pisces

var thetext2SMS=new Array()
thetext2SMS[0]="<b>()</b>"
thetext2SMS[1]="<b>AriesWeb</b>" 		//Aries
thetext2SMS[2]="<b>TaurusWeb</b>" 		//Taurus
thetext2SMS[3]="<b>GeminiWeb</b>" 	//Gemini
thetext2SMS[4]="<b>CancerWeb</b>" 	//Cancer
thetext2SMS[5]="<b>LeoWeb</b>" 	//Leo
thetext2SMS[6]="<b>VirgoWeb</b>" 	//Virgo
thetext2SMS[7]="<b>LibraWeb</b>" 	//Libra
thetext2SMS[8]="<b>ScorpioWeb</b>" 	//Scorpio
thetext2SMS[9]="<b>SagittariusWeb</b>" 	//Sagittarius
thetext2SMS[10]="<b>CapricornWeb</b>" 	//Capricorn
thetext2SMS[11]="<b>AquariusWeb</b>" 	//Aquarius
thetext2SMS[12]="<b>PiscesWeb</b>" 	//Pisces

// Now, see 2) below for final customization step
function displaydescSMS(which, descriptionarray, container){
if (document.getElementById)
document.getElementById(container).innerHTML=descriptionarray[which.selectedIndex]
}
// end SMS -->
<!-- for the form... to enable/disable submit button
function init()
{
	if (!document.layers) return;
	var box = document.forms[0].elements;
	for (var i=0;i<box.length;i++)
	{
		box[i].disabled = false;
	}
}

function disableIt(obj)
{
	obj.disabled = !(obj.disabled);
	var z = (obj.disabled) ? 'disabled' : 'enabled';
}

function extracheck(obj)
{
	return !obj.disabled;
}

		function validate() {
			if (contact_form.name.value=='') {
			alert('Your name is a required field. Please try again.');
			return false;			
			}
			if (contact_form.emailaddr.value=='') {
			alert('Your email address is a required field. Please try again.');
			return false;			
			}
			if (contact_form.phone.value=='') {
			alert('Your phone number is a required field. Please try again.');
			return false;			
			}
			if (contact_form.contactaddress.value=='') {
			alert('Your contact address is a required field. Please try again.');
			return false;			
			}
			if (contact_form.code.checked == false ) {
			alert('In order to join the Universal Psychic Guild, you must read, understand and accept the Code of Ethics.');
			return false;			
			}
		}

var on_color = "#660099";
var off_color = "#FFFFFF";
var blink_onoff = 1;
var blinkspeed= 500;
function blink()
{
	if( blink_onoff == 1) {
           document.all.blink.style.color = on_color;
	   blink_onoff = 0;
	}
	else {
	   document.all.blink.style.color = off_color;
	   blink_onoff = 1;
	}
}

function disableForm(theform) {
	if (document.all || document.getElementById) {
		for (i = 0; i < theform.length; i++) {
			var tempobj = theform.elements[i];
			if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
				tempobj.disabled = true;
		}
		return true;
	}else {
		return false;
   }
}

function AssignSuggUsername(elem_id, new_val) {
	// newsletter.php => assign / onclick suggested usernames
	if( document.getElementById(elem_id) ) {
		var elem = document.getElementById(elem_id);
		elem.value = new_val;
		
		return true;
	}
	return false;
}

function CenterPopup(page, w, h) {
	var left = (screen.availWidth/2) - (w/2);
	var top = (screen.availHeight/2) - (h/2);
	window.open(page,'Page','width='+w+',height='+h+',scrollbars=1,resizable=0,status=0,left='+left+',top='+top);
}

// -->