function openNewWindow(URLtoOpen, windowName, windowFeatures) {
newWindow=window.open(URLtoOpen, windowName, windowFeatures); }
/*
Add-to-favorites Script
Created by David Gardner (toolmandav@geocities.com)
No warranty of any kind comes with this script!
Permission granted to Dynamic Drive (http://dynamicdrive.com) 
to post and feature this script on their DHTML archive
*/

//configure the two variables below to match yoursite's own info
var bookmarkurl="http://www.ringtoneswizard.com"
var bookmarktitle="RigngtonesWizard.com Making Magic For Your Mobile"

function addbookmark(){
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}


<!--
// for all date displays
//by Bill Sanders. billsanders@yahoo.com
//submitted and displayed at www.a1javascripts.com
today = new Date();
year = (today.getFullYear) ? today.getFullYear() : today.getYear();
month = today.getMonth();
switch (month) {
			 case 0 : month = "Jan"; break;
			 case 1 : month = "Feb"; break;
			 case 2 : month = "Mar"; break;
                         case 3 : month = "Apr"; break;
			 case 4 : month = "May"; break;
			 case 5 : month = "Jun"; break;
			 case 6 : month = "Jul"; break;
			 case 7 : month = "Aug"; break;
			 case 8 : month = "Sep"; break;
			 case 9 : month = "Oct"; break;
			 case 10 : month = "Nov"; break;
			 case 11 : month = "Dec"; break;
			 }
date = today.getDate();
day = today.getDay();
switch (day) {
			 case 0 : day = "Sunday"; break;
			 case 1 : day = "Monday"; break;
			 case 2 : day = "Tuesday"; break;
			 case 3 : day = "Wednesday"; break;
			 case 4 : day = "Thursday"; break;
			 case 5 : day = "Friday"; break;
			 case 6 : day = "Saturday"; break;
			 }
hours = today.getHours();
  if (hours<12)  greeting = 'Good morning!';
	if (hours<18 && hours>11)  greeting = 'Good afternoon!';
	if (hours<20 && hours>17)  greeting = 'Good evening!';
	if (hours>19)  greeting = 'Good evening!  ';
hour = (hours>12) ? (hours-12) : hours;
halfDay = (hours>11 && hours<24) ? 'PM' : 'AM';
minutes = today.getMinutes();
dayStr =  day+ ', ' +date+ '&nbsp;' +month+ ',&nbsp;' +year;
timeStr = (minutes<10) ? hour+ ':0' +minutes+ ' ' +halfDay : hour+ ':' +minutes+ ' ' +halfDay;

// -->

// based on form mailer code at http://www.winterstorm.ca/node/view/11

function check_url()
{
	alert(get_url());
}

function get_body()
{
	var body;
	body = "Hi,\nI just found this cool ringtones website. It's at ";
	body += "http://www.mightyringtones.com/\nThey've got more than 2000 monophonic";
	body +=" ringtones, 1000 polyphonic ringtones, 2000 backgrounds. They also";
	body +=" do picture messages, screen savers, minimovies, operator logos";
	body +=" and more.\n\nCheck it out.\n";
	return(body);
}
function get_url()
{
	var parts;
	var tot_url = document.URL;
	parts = tot_url.split('/');
	return parts[2];
}

function sendEmail(Address) {
    var emailTo;
    var emailSubject = "Cool mobile phone site";

    var emailURL; // The URL that will open the user's email client

    // Set some default values
    emailTo = Address;
    
    emailURL = "mailto:";
    if (emailTo!='') {
	emailURL = emailURL + escape(emailTo);
    }
    emailURL = emailURL + 
	"?subject=" + escape(emailSubject) +
	"&body=" + escape(get_body());

    window.location = emailURL;
    return true;
}


var days=new Array()
days[0]="sunday";
days[1]="monday";
days[2]="tuesday";
days[3]="wednesday";
days[4]="thursday";
days[5]="friday";
days[6]="saturday";

var time=new Date()
var x=time
var sysday=days[x.getDay()];


<!--
current_site = "Yahoo"

var set_def = false

function fetch() {

	if (set_def == true) {

		set_default = "t"

	}else{

		set_default = ""

	}

	tmp = document.SearchForm.Search.value;

	stmp = "";

	for (i=0 ; i <= tmp.length ; i++) {

		if (tmp.charAt(i) == " ") {

			stmp = stmp + "+"; 

		} else {

			stmp = stmp + tmp.charAt(i); 

		}

	}

	if (current_site == "Yahoo") {

		top.location.href = "http://search.yahoo.com/bin/search?p=" + document.SearchForm.Search.value

	}

	if (current_site == "AltaVista") {

		top.location.href = "http://www.altavista.com/web/results?q=" + document.SearchForm.Search.value

	}

	if (current_site == "Google") {

		top.location.href = "http://www.google.com/search?q=" + document.SearchForm.Search.value 

	}



	return false;

}



function toggle_setdef() {

set_def = !(set_def);

}



function setsite(sitenow) {

current_site = sitenow;

}





function RefWindow() {
   window.open('http://www.mms3.com/partner/affiliate_box.php?uid=0997','preview','width=440,height=500,toolbar=no,location=no,scrollbars=no');
}
function compat() {
			win = window.open('http://64.202.114.141/compatibility-guide/CompatGuide/', 'compat', 'scrollbars=yes,resizable=yes,width=710,height=610');
		}
		function order(id){
			win = window.open("http://ringtones.theringtonesfactory.com/en/uk/realtones/order/"+id, "order", "resizable, width=300, height=419");
		}
		function getByText(url) {
			txtWin = window.open(url, "txtWin", 'scrollbars=yes,resizable=yes,width=780,height=600,location=no');
		}
		function listen(id){
			if (win != null) win.close();
			win = window.open('http://ringtones.theringtonesfactory.com/en/uk/realtones/preview/' + id, "listenPreview", "resizable, width=300, height=479")
		}
		function getitfree(id){
			getitfreewin = window.open("http://ringtones.theringtonesfactory.com/en/uk/realtones/getitfree/"+id, "getitfreewin", "scrollbars=yes,resizable=yes, width=310, height=550");
		}
function getCreditCard(location){
   win = window.open(location, "credit", "scrollbars=no,resizable=yes, width=550, height=450");
   }
  


	// -->
	