<!--
function setFontSize(pt){
  try{
    var a=document.getElementById("textboxContent");
	var b=document.getElementById("textboxContent2");
	var c=document.getElementById("textboxContent3");
	var d=document.getElementById("textboxContent4");
	var f=document.getElementById("textboxContent5");
	var g=document.getElementById("textboxContent6");
	var h=document.getElementById("textboxContent7");
	var i=document.getElementById("textboxContent8");
	var j=document.getElementById("textboxContent9");
	var k=document.getElementById("textboxContent10");
	var l=document.getElementById("textboxContent11");
	var m=document.getElementById("textboxContent12");
	var n=document.getElementById("textboxContent13");
	var o=document.getElementById("textboxContent14");
	var p=document.getElementById("textboxContent15");
	var q=document.getElementById("textboxContent16");
	var r=document.getElementById("textboxContent17");
	var s=document.getElementById("textboxContent18");
	var t=document.getElementById("textboxContent19");
	var v=document.getElementById("textboxContent20");
	var u=document.getElementById("textboxContent21");
	var w=document.getElementById("textboxContent22");
	var x=document.getElementById("textboxContent23");
	var y=document.getElementById("textboxContent24");
	var z=document.getElementById("textboxContent25");
	var z1=document.getElementById("textboxContent26");
	var z2=document.getElementById("textboxContent27");
	var z3=document.getElementById("textboxContent28");
	var z4=document.getElementById("textboxContent29");
	var z5=document.getElementById("textboxContent30");
	var z6=document.getElementById("textboxContent31");
	var z7=document.getElementById("textboxContent32");
	var z8=document.getElementById("textboxContent33");
	var z9=document.getElementById("textboxContent34");
	var z10=document.getElementById("textboxContent35");
	var z11=document.getElementById("textboxContent36");
	
    if(a){
      a.style.fontSize=pt+"";
    }
	if(b){
      b.style.fontSize=pt+"";
    }
	 if(c){
      c.style.fontSize=pt+"";
    }
	if(d){
      d.style.fontSize=pt+"";
    }
	if(f){
      f.style.fontSize=pt+"";
    }
	if(g){
      g.style.fontSize=pt+"";
    }
	 if(h){
      h.style.fontSize=pt+"";
    }
	if(i){
      i.style.fontSize=pt+"";
    }
	if(j){
      j.style.fontSize=pt+"";
    }
	 if(k){
      k.style.fontSize=pt+"";
    }
	if(l){
      l.style.fontSize=pt+"";
    }
	if(m){
      m.style.fontSize=pt+"";
    }
	if(n){
      n.style.fontSize=pt+"";
    }
	 if(o){
      o.style.fontSize=pt+"";
    }
		if(p){
      p.style.fontSize=pt+"";
    }
	 if(q){
      q.style.fontSize=pt+"";
    }
	 if(r){
      r.style.fontSize=pt+"";
    }
		 if(s){
      s.style.fontSize=pt+"";
    }
		if(t){
      t.style.fontSize=pt+"";
    }
	 if(v){
      v.style.fontSize=pt+"";
    }
	 if(u){
      u.style.fontSize=pt+"";
    }
	 if(w){
      w.style.fontSize=pt+"";
    }
	 if(x){
      x.style.fontSize=pt+"";
    }
		 if(y){
      y.style.fontSize=pt+"";
    }
		if(z){
      z.style.fontSize=pt+"";
    }
	 if(z1){
      z1.style.fontSize=pt+"";
    }
	 if(z2){
      z2.style.fontSize=pt+"";
    }
	if(z3){
      z3.style.fontSize=pt+"";
    }
		 if(z4){
      z4.style.fontSize=pt+"";
    }
	 if(z5){
      z5.style.fontSize=pt+"";
    }
	if(z6){
      z6.style.fontSize=pt+"";
    }
		 if(z7){
      z7.style.fontSize=pt+"";
    }
	 if(z8){
      z8.style.fontSize=pt+"";
    }
	if(z9){
      z9.style.fontSize=pt+"";
    }
		 if(z10){
      z10.style.fontSize=pt+"";
    }
	 if(z11){
      z11.style.fontSize=pt+"";
    }
	
  }catch(e){}
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function showadv(){
if (document.frmupload.group2.checked == true) {
	adv.style.display = "";
}else{
	adv.style.display = "none";
}
}

function showadv2(){
if (document.fp.loginCheck.checked == true) {
	adv2.style.display = "";
	advance.innerText = "Hide User Menu"
}else{
	adv2.style.display = "none";
	advance.innerText = "Show User Menu"
}
}


<!-- Begin
function populate(objForm,selectIndex) {
timeA = new Date(objForm.year.options[objForm.year.selectedIndex].text, objForm.month.options[objForm.month.selectedIndex].value,1);
timeDifference = timeA - 86400000;
timeB = new Date(timeDifference);
var daysInMonth = timeB.getDate();
for (var i = 0; i < objForm.day.length; i++) {
objForm.day.options[0] = null;
}
for (var i = 0; i < daysInMonth; i++) {
objForm.day.options[i] = new Option(i+1);
}
document.Appointment.day.options[0].selected = true;
}
function getYears() {

// You can easily customize what years can be used
var years = new Array(1997,1998,1999,2000,2001,2005)

for (var i = 0; i < document.f1.year.length; i++) {
document.Appointment.year.options[0] = null;
}
timeC = new Date();
currYear = timeC.getFullYear();
for (var i = 0; i < years.length; i++) {
document.Appointment.year.options[i] = new Option(years[i]);
}
document.Appointment.year.options[2].selected=true;
}
window.onLoad = getYears;
//  End -->


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];}
}

function mOvr(src,clrOver) { if (!src.contains(event.fromElement)){ src.bgColor = clrOver; }}function mOut(src,clrIn){ if (!src.contains(event.toElement)) { src.style.cursor = 'hand'; src.bgColor = clrIn; }} function mClk(src) { if(event.srcElement.tagName=='TD'){src.children.tags('A')[0].click();} }
//-->

// JavaScript Document

/*
Clear default form value script- by JavaScriptKit.com
Featured on JavaScript Kit (http://javascriptkit.com)
Visit javascriptkit.com for 400+ free scripts!

<form>
<input type="text" value="Search this site" onFocus="clearText(this)">
</form>
*/

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 
	
	
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->

/*
Submit Once form validation- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
	
function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
	//screen thru every element in the form, and hunt down "submit" and "reset"
	for (i=0;i<theform.length;i++){
		var tempobj=theform.elements[i]
		if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset" ||tempobj.type.toLowerCase()=="button")
		//disable em
		tempobj.disabled=true
		}
	}
}

function getFileExtension(filePath) { //v1.0
  fileName = ((filePath.indexOf('/') > -1) ? filePath.substring(filePath.lastIndexOf('/')+1,filePath.length) : filePath.substring(filePath.lastIndexOf('\\')+1,filePath.length));
  return fileName.substring(fileName.lastIndexOf('.')+1,fileName.length);
}

function checkFileUpload(form,extensions) { //v1.0
  document.MM_returnValue = true;
  if (extensions && extensions != '') {
    for (var i = 0; i<form.elements.length; i++) {
      field = form.elements[i];
      if (field.type.toUpperCase() != 'FILE') continue;
     // if (field.value == '') {
       // alert('File is required!');
        //document.MM_returnValue = false;field.focus();break;
      //}
      if (extensions.toUpperCase().indexOf(getFileExtension(field.value).toUpperCase()) == -1) {
        alert('Only Gif, Jpeg, Jpg images format are allow for uploading!');
			for (i=0;i<form.elements.length;i++){
				var tempobj=form.elements[i]
				if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset"||tempobj.type.toLowerCase()=="button")
//disable em
				tempobj.disabled=false
			}
        document.MM_returnValue = false;field.focus();break;
  } } }
}



/*
Submit Once form validation- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/
	
function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
	//screen thru every element in the form, and hunt down "submit" and "reset"
	for (i=0;i<theform.length;i++){
		var tempobj=theform.elements[i]
		if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset" ||tempobj.type.toLowerCase()=="button")
		//disable em
		tempobj.disabled=true
		}
	}
}
	

<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
//-->

function agree() {
			document.registerForm.Agreement.value = "User Agreement And General Rules\n\nIf you agree with the following rules then click on the 'Agree' checkbox at the bottom of the page if not click on the 'Disagree and Back' button.\n\nWhen you register you are required to give a small amount of information, much of which is optional, anything you do give must be considered as becoming public information.\n\nYou agree not to use singproperty.com to post any material which is vulgar, defamatory, inaccurate, harassing, hateful, threatening, invading of others privacy, sexually oriented, or violates any laws. You also agree that you will not post any copyrighted material that is not owned by yourself.\n\nYou remain solely responsible for the content of your messages or listing, and you agree to indemnify and hold harmless our website and their agents with respect to any claim based upon any post you may make. We also reserve the right to reveal whatever information we know about you in the event of a complaint or legal action arising from any messageor listing posted by yourself.And singproperty.com have the right to delete user's account and block user to access to this website without prior noticed.\n\nYou must agree that singproperty.com will not responsible for the content or accuracy of any of these messages or listing posted by you or the user, we reserve the right to delete any message or listing for any or no reason whatsoever. If you do find any posts are objectionable then please contact us by e-mail at webmaster@singproperty.com.\n\nThe Federal Trade Commission's Children's Online Privacy Protection Act of 1998 (COPPA) requires that Web Sites are to obtain parental consent before collecting, using, or disclosing personal information from children under 13. If you are below 13 then you can NOT use this website. Do NOT register if you are below the age of 13.\n\nBy registering to use singproperty.com you must meet the above criteria and agree to abide by all of the above rules and policies.";
		}
		
//Function to Selected User ID
function AddText(txtname){	
	document.isn.UserID.value = txtname
	document.isn.submit()
	
}

function CheckAll(form)  {
  for (var i=0;i<form.elements.length;i++)    {
    var e = form.elements[i];
    if (e.name != 'chkall')       e.checked = form.chkall.checked; 
   }
  }
  
function openWindow(theURL,winName,features) { //v2.0
	 window.open(theURL,winName,features);
}

//show the pop-window with brandname
percent = "6%";
function frameBranding(actualurl, brandingurl, frametype) {
var framewin = window.open("","brandingframe");
with (framewin.document) {
write("<html><frameset " + frametype + "=" + percent + ",*>");
write("<frame src=" + brandingurl + " border=0>");
write(" <frame src=" + actualurl + " border=0");
write("</frameset></html>");
   }
return false;
}

//-->
